package com.ruoyi.system.domain;

import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;

import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 举报对象 t_report
 * 
 * @author DEREK
 * @date 2023-08-10
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_report")
public class Report
{

    /** 主键ID */
	@TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 举报人ID */
    @Excel(name = "举报人ID")
    private Long reportUserId;

    /** 被举报人ID */
    @Excel(name = "被举报人ID")
    private Long reportedUserId;

    /** 举报类型 */
    @Excel(name = "举报类型")
    private String reasonCode;

    /** 附件ID */
    @Excel(name = "附件ID")
    private String attachments;

    /** 举报时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "举报时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportTime;

    /** 审核状态
	1=待审核 */
    @Excel(name = "审核状态1=待审核")
    private Integer status;

    /** 审核结果 */
    @Excel(name = "审核结果")
    private String result;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date adoptTime;

    /** 审核用户 */
    @Excel(name = "审核用户")
    private String adoptUser;
    
    private String remark;
    private Date createTime;
    private Date updateTime;

    @TableField(exist = false)
    private String nickName;
    @TableField(exist = false)
    private String toNickName;
    @TableField(exist = false)
    private Integer examineType;
    
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportUserId", getReportUserId())
            .append("reportedUserId", getReportedUserId())
            .append("reasonCode", getReasonCode())
            .append("attachments", getAttachments())
            .append("remark", getRemark())
            .append("reportTime", getReportTime())
            .append("status", getStatus())
            .append("result", getResult())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("adoptTime", getAdoptTime())
            .append("adoptUser", getAdoptUser())
            .toString();
    }
}
